package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmUserDto;
import com.heima.model.wemedia.pojos.WmUser;

public interface WmUserService extends IService<WmUser> {

    /**
     * 按照用户名查询
     * @param name
     * @return
     */
    ResponseResult findWmUserByName(String name);

    /**
     * 新增,保存用户
     * @param wmUser
     * @return
     */
    ResponseResult saveWmUser(WmUser wmUser);

    /**
     * 用户登录
     * @param wmUserDto
     * @return
     */
    ResponseResult login(WmUserDto wmUserDto);
}
